#include <Ice/Application.h>
#include <HolaMundo.h>

using namespace std;
using namespace Demo;

class Client : virtual public Ice::Application {
  virtual int run (int, char*[]) {
    Ice::ObjectPrx base = communicator()->
      stringToProxy("HolaMundo:default -p 10000");
    HolaMundoPrx holaMundoPrx = HolaMundoPrx::checkedCast(base);
    holaMundoPrx->saludar();
    communicator()->waitForShutdown();
    return 0;
  }
};

int main (int argc, char *argv[]) {
  Client client;
  return client.main(argc, argv);
}
